<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
<title>
</title>
<meta charset="utf-8">
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" href="css/ui-input.css">
<link rel="stylesheet" href="css/ui-base.css">
<link rel="stylesheet" href="css/ui-box.css">
<link rel="stylesheet" href="css/ui-color.css">
<link rel="stylesheet" href="css/ui-tab.css">
<link rel="stylesheet" href="css/ui-img.css">
<script src="js/zy_control.js"></script>
<script src="js/zy_click.js"></script>
<script src="js/jquery-2.0.0.js"></script>
<script src="js/zy_tmpl.js"></script>
<script></script>
</head>
<style>
	.line-r{
		border-right: 1.5px solid rgb(170, 145, 145);
	}
	.shadow{
	   box-shadow:3px 3px 6px rgba(180, 178, 178, 0.76);
	}
</style>
<body class="um-vp" ontouchstart>
	

</body>
<script>
	var tmpl_head='<div class="ub ub-ver">'
		+'<div class="ub ub-f3 imgPerBack ub-ver" style="height:9.65em;width:100%; ">'
			
			+'<div class="ub-f4 imgHead2" >'
				
			+'</div>'
			
			+'<div class="ub ub-f1 ub-ver">'
				+'<div class="ub-f1 t-wh tx-c ulev-1 ">${name}</div>'
				+'<div class="ub ub-f1">'
					+'<div class="ub-f1 t-wh tx-r ulev-1">积分：${score}</div>&nbsp;'
					+'<div class="ub-f1 t-wh tx-l ulev-1">头衔：${title}</div>'
				+'</div>'
			+'</div>'
		+'</div>'
		
		+'<div class="ub ub-f1 c-wh tab t-gra shadow">'	
 			+'<div class="ub ub-f1 line-r">'
				+'<input class="uhide" type="radio" name="tabSwitch" >'
				+'<div ontouchstart="zy_touch("",zy_for)" class="ub-f1 ub ub-ver tab-act" onclick="loadPerData()"><div class="ub-f1 ub-img5 tp-redme"></div><div class="uinn ulev-2 tx-c">资料</div></div>'
	 		+'</div>'
			+'<div class="ub ub-f1 line-r">'	
				+'<input class="uhide" type="radio" name="tabSwitch">'
				+'<div ontouchstart="zy_touch("",zy_for)" class="ub-f1 ub ub-ver tab-act" onclick="loadTheme()"><div class="ub-f1 ub-img5 tp-yeltag"></div><div class="uinn ulev-2 tx-c">主题</div></div>'
			+'</div>'
			+'<div class="ub ub-f1 line-r">	'
				+'<input class="uhide" type="radio" name="tabSwitch">'
				+'<div ontouchstart="zy_touch("",zy_for)" class="ub-f1 ub ub-ver tab-act" onclick="loadCollect()"><div class="ub-f1 ub-img5 tp-blucol"></div><div class="uinn ulev-2 tx-c">收藏</div></div>'
			+'</div>'
			+'<div class="ub ub-f1">'
				+'<input class="uhide" type="radio" name="tabSwitch">'
				+'<div ontouchstart="zy_touch("",zy_for)" class="ub-f1 ub ub-ver tab-act" onclick="loadParticipation()"><div class="ub-f1 ub-img5 tp-grecom"></div><div class="uinn ulev-2 tx-c">参与</div></div>'
			+'</div>'	
		+'</div>'
		
	+'</div>';
	
var tmpl_sign='<div class="ub c-wh shadow" style="margin-top:1em;margin-left:0.5em;margin-right:0.5em;border: 1px solid #c5c5c5;">'
					+'<div class="ub-f4 c-wh  ulev-1 t-gra umh5">${signature}</div>'
					+'<div class="imgEdit2  c-wh ub-f1" style="border-left: 1px solid #c5c5c5;" onclick="editSignature()"></div>'	
			  +'</div>'
	
	var tmpl_myNews='<div  class="ub umh5 uinn3 unn b-gra c-wh uc-t1 uc-b1 ub-ver shadow" style="border:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">'
		+'<div class="ub">'
			+'<div class="umw3 umh5 umar-a" style="margin:0.6em"><div class="uabs umw3 umh5"  style="background-image:url(http://t1.qlogo.cn/mbloghead/c39e95b85b1b6bcd6f84/50);width:50px;height:50px"></div></div>'
			+'<div class="ub ub-f1 ub-ver">'
				+'<div class="ub" style="margin-top:0.4em; margin-left:0.3em">'
					+'<div class="ulev0 t-blu">小泽玛丽罗</div>'
					+'<div class="umw1"></div>'
					+'<div class="ub-f1"></div>'
					+'<div class="umw1"></div>'
				+'</div>'
				+'<div class="ub" style="margin-top:0.4em; margin-left:0.3em">'
					+'<div class="t-gra" style="font-size:0.7em; margin-top:0.5em">发布于：1天前</div>'
					+'<div class="umw1"></div>'
					+'<div class="ub-f1"></div>'
					+'<div class="umw1"></div>'
				+'</div>'
				+'<div class="ub-f1"></div>'
				
			+'</div>'
		+'</div>'
		+'<div class="ub-f1 " style="font-size:0.8em; margin-left:0.6em;margin-top:0.3em;margin-bottom:0.3em; letter-spacing:0.15em">我可以很负责任的告诉大家，高圆圆是我老婆，少女时代也是我老婆！我可以很负责任的告诉大家，高圆圆是我老婆，少女时代也是我老婆！</div>'
		+'<div style="margin-top:0.1em; border-bottom:1px solid #c5c5c5;display:block"></div>'
		+'<div class="ub ub-ver" style="margin:0.3em;margin-left:0.5em">'
			+'<div class="ub ub-f1">'
				+'<div class=" t-bla" style="font-size:0.95em">查看全部11条评论</div>'
				+'<div class="umw1"></div>'
				+'<div class="ub-f1"></div>'
				+'<div class="umw1"></div>'
			+'</div>'
			+'<div class="ub ub-f2 ub-ver" style="margin-left:0.3em;margin-top:0.2em">'
				+'<div class="ub ub-f1 ulev-1">'
					+'<div class="t-bla">小鸡鸡：</div>'
					+'<div class=" t-gra">我的积极最大！</div>'
				+'</div>'
				+'<div class="ub ub-f1 ulev-1">'
					+'<div class=" t-bla">小鸡鸡：</div>'
					+'<div class=" t-gra">我的积极最大！</div>'
				+'</div>'
				
			+'</div>'
		+'</div>'
		+'<div class="ub  t-wh c-bla c-m2 b-bla tx-c" style="background-color: rgb(235, 235, 235); border-top:1px solid #c5c5c5;">'
			+'<div class="ub ub-f1" style="padding-top:0.3em;padding-bottom:0.3em">'
				+'<input type="radio" name="rdi1" class="uhide" value="">'
				+'<div onclick="zy_for(event)" class="uinn5 ubl uc-l1 ub-f1 che t-bla imgPra" style="background-position:right; border:0px; "></div>'
				+'<div class="ub-f1 tx-l " style="padding-top:0.2em; border-right:1px solid rgb(161, 163, 168);;color: rgb(184, 180, 180); ">11</div>'
			+'</div>'
			+'<div style="margin-top:0.1em; border-top:1px solid #c5c5c5;display:block"></div>'
			+'<div class="ub ub-f1 ub-r1">'
				+'<input type="radio" name="rdi1" class="uhide" value="">'
				+'<div onclick="zy_for(event)" class="uinn5 ubl ub-f1 che t-bla imgCom" style="background-position:center;border-left: 0px solid rgb(161, 163, 168);"></div>'
			+'</div>'
		+'</div>'
		
	+'</div>';
zy_init();
perDataUrl="http://tm.ourstu.com/api.php//user/getProfile?uid=1";//+window.localStorage["uid"]
window.uexOnload=function(type){
	if(!type){
		uexWindow.setBounce("1");
		uexWindow.showBounceView("0","#FFF","0");
		uexWindow.showBounceView("1","#FFF","0");
	}
	loadData();
}
function loadData(){
	$.getJSON(perDataUrl,function(data){
		var t=3;
		
		var h=document.createElement('DIV');
		var head=zy_tmpl_s(tmpl_head,data,zy_tmpl_count(data));
		h.innerHTML=head;
		document.body.appendChild(h);
		if(data["signature"]=="")
			data["signature"]="还没有个性签名，来编辑吧！";
		var e=document.createElement('DIV');
		var edit=zy_tmpl_s(tmpl_sign,data,zy_tmpl_count(data));
		e.innerHTML=edit;
		document.body.appendChild(e);
		var d=document.createElement('DIV');
		var myNew=zy_tmpl_s(tmpl_myNews,data,zy_tmpl_count(data));
		d.innerHTML=myNew;
		document.body.appendChild(d);
		
	});
}
function editSignature(){
	uexWindow.open("signature",0,"signature.html",2,"","",0,600);
}
function loadPerData(){
	uexWindow.open("perDataEdit",0,"perDataEdit.html",0,"","",0,600);
}
function loadCollect(){
	
}
function loadParticipation(){
	
}
function loadTheme(){
	
}
</script>
</html>
